docs: Use code blocks for inline XML
authorEmmanuele Bassi <ebassi@gnome.org>
Sun, 27 Jun 2021 14:25:18 +0000 (15:25 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Sun, 27 Jun 2021 14:25:18 +0000 (15:25 +0100)
Otherwise the markdown renderer will just ignore them.

Fixes: #4076
gtk/gtkdialog.c

index 7c88f12113f07a7a8f8f19a514246c3c23ac6409..5d887564246bd0b81492334ed4da7638c8bf8fb6 100644 (file)
@@ -95,6 +95,7 @@
  * if you had more than a simple message in the dialog.
  *
  * An example for simple `GtkDialog` usage:
+ *
  * ```c
  * // Function to open a dialog box with a message
  * void
  * The `GtkDialog` implementation of the `GtkBuildable` interface exposes the
  * @content_area as an internal child with the name “content_area”.
  *
- * `GtkDialog` supports a custom <action-widgets> element, which can contain
- * multiple <action-widget> elements. The “response” attribute specifies a
+ * `GtkDialog` supports a custom `<action-widgets>` element, which can contain
+ * multiple `<action-widget>` elements. The “response” attribute specifies a
  * numeric response, and the content of the element is the id of widget
  * (which should be a child of the dialogs @action_area). To mark a response
- * as default, set the â\80\9cdefaultâ\80\9c attribute of the <action-widget> element
+ * as default, set the â\80\9cdefaultâ\80\9d attribute of the `<action-widget>` element
  * to true.
  *
- * `GtkDialog` supports adding action widgets by specifying â\80\9cactionâ\80\9c as
- * the â\80\9ctypeâ\80\9c attribute of a <child> element. The widget will be added
+ * `GtkDialog` supports adding action widgets by specifying â\80\9cactionâ\80\9d as
+ * the â\80\9ctypeâ\80\9d attribute of a `<child>` element. The widget will be added
  * either to the action area or the headerbar of the dialog, depending
- * on the â\80\9cuse-header-barâ\80\9c property. The response id has to be associated
- * with the action widget using the <action-widgets> element.
+ * on the â\80\9cuse-header-barâ\80\9d property. The response id has to be associated
+ * with the action widget using the `<action-widgets>` element.
  *
  * An example of a `GtkDialog` UI definition fragment:
+ *
  * ```xml
  * <object class="GtkDialog" id="dialog1">
  *   <child type="action">